package com.wangsb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: shenbing.wang
 * @CreateDate: 2021/2/19 22:41
 * @Version: 1.0
 * @Description:
 */
@Controller
public class ResponseController {


    @GetMapping("/response01")
    public String response01() {
        return "/WEB-INF/views/index.jsp";
    }

    @GetMapping("/response02")
    public String response02() {
        return "index";
    }

    @GetMapping("/response03")
    public String response03() {
        return "forward:/login.jsp";
    }

    @GetMapping("/response04")
    public String response04() {
        return "redirect:/login.jsp";
    }
}
